package win.smartown.android.viewController.loading

import android.view.View
import android.view.ViewStub

import win.smartown.android.R


/**
 * Created by smartown on 2017/3/18.
 * <br></br>
 * Description:数据为空提示
 */
class DefaultEmptyView(viewStub: ViewStub) : EmptyView {

    private val view: View

    init {
        viewStub.layoutResource = R.layout.layout_loading_no_data
        view = viewStub.inflate()
    }

    override fun resetData() {
        view.visibility = View.GONE
    }

    override fun noData() {
        view.visibility = View.VISIBLE
    }
}
